import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css'; // 引入样式
import router from './router';//路由配置
import axios from 'axios';//api插件
import store from './store';//vuex存储信息


// createApp(App).mount('#app')
//创建实例
const app = createApp(App);
//安装插件
app.use(ElementPlus);
//安装配置
app.use(router);
//vuex存储信息
app.use(store);
//将axios挂载到全局属性
app.config.globalProperties.$axios = axios
//挂载应用
app.mount('#app');